<extend name="base" />
<block name="meau">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li><a href="__URL__/allUser">全部用户管理</a></li>
            <li><a href="__URL__/systemUser">系统用户管理</a></li>
            <li  class="active"><a href="__URL__/unitUser">单位用户设置</a></li>
            <li><a href="__URL__/userControl">用户操作记录</a></li>
            <if condition="$superadmin">
                <li><a href='<{:U("Home/Rbac/index")}>'>系统权限管理</a></li>
            </if>
          </ul>
        </div>
</block>
<block name="content" >
  <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">           
    <h2 class="sub-header">单位用户列表</h2>
      <div class="table-responsive">
        <table class="table table-striped table-bordered table-condensed">
          <thead>
            <tr>
              <th>工号</th>
              <th>账号</th>
              <th>所属单位</th>
              <th>所属部门</th>
              <th>工作职位</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <foreach name="infoData" item="vo">
              <tr>
                <td><{$vo.work_id}></td>
                <td><{$vo.user_name}></td>
                <td><{$vo.company}></td>
                <td><{$vo.depart}></td>
                <td><{$vo.position}></td>
                <td>
                  <div class="btn-group btn-group-xs" role="group" aria-label="...">
                      <button type="button" class="btn btn-default" name="delete">
                      <a href='<{:U("Home/User/infoDelete",array("id"=>$vo["uid"]))}>''>删除</a>
                      </button>
                      <button type="button" class="btn btn-default" name="set">
                      <a href='<{:U("Home/User/InfoMod",array("id"=>$vo["uid"]))}>''>设置</a></button>
                  </div>
                </td>    
              </tr>
            </foreach>
            <if condition="$count gt $listRows">
              <tr><td colspan="8"><{$show}></td></tr>
            </if> 
          </tbody>
        </table>
      </div>
  </div>
</block>